import threading


class MyThread (threading.Thread):
    def __init__ (self,text):
        threading.Thread.__init__ (self, target=self.run)
        self.text = text

    def run (self):
        while(1):
            print self.text


Thread1 = MyThread ("lala")
Thread2 = MyThread ("asas")
Thread3 = MyThread ("fdfd")
Thread4 = MyThread ("grgr")
Thread5 = MyThread ("hjhj")
Thread6 = MyThread ("tyty")
Thread7 = MyThread ("ikik")
Thread8 = MyThread ("opop")

Thread1.start()
Thread2.start()
Thread3.start()
Thread4.start()
Thread5.start()
Thread6.start()
Thread7.start()
Thread8.start()
